package com.durian.financial.api.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.durian.common.core.annotation.Excel;
import com.durian.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 风控公寓授信主对象 t_fk_business_credit
 * 
 * @author durian
 * @date 2022-06-28
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class FkBusinessCredit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 商户id */
    @Excel(name = "商户id")
    private Long businessId;

    /** 商户注册日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "商户注册日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registerDate;

    /** 商户注册资本金 */
    @Excel(name = "商户注册资本金")
    private BigDecimal registerCapital;

    /** 授信状态，1：已授信、2：未授信 */
    @Excel(name = "授信状态，1：已授信、2：未授信")
    private Integer creditStaus;

    /** 应花分期使用 */
    @Excel(name = "应花分期使用")
    private String appid;

    /** 海链总授信额度 */
    @Excel(name = "海链总授信额度")
    private BigDecimal hlTotalCreditline;

    /** 海链已用授信额度 */
    @Excel(name = "海链已用授信额度")
    private BigDecimal hlUsedCreditline;

    /** 海链月授信额度 */
    @Excel(name = "海链月授信额度")
    private BigDecimal hlMonthlyTotalCreditline;

    /** 海链月已用授信额度 */
    @Excel(name = "海链月已用授信额度")
    private BigDecimal hlMonthlyUsedCreditline;

    /** 预留字段1 */
    @Excel(name = "预留字段1")
    private BigDecimal reserve1;

    /** 预留字段2 */
    @Excel(name = "预留字段2")
    private Long reserve2;

    /** 预留字段3 */
    @Excel(name = "预留字段3")
    private String reserve3;

    /** 预留字段4 */
    @Excel(name = "预留字段4")
    private String reserve4;

    /** 预留字段5 */
    @Excel(name = "预留字段5")
    private String reserve5;

    /** 删除标识   0：未删除、1：删除 */
    @Excel(name = "删除标识   0：未删除、1：删除")
    private Integer delFlg;

    /** 创建用户id */
    @Excel(name = "创建用户id")
    private Long createUserid;

    /** 更新用户id */
    @Excel(name = "更新用户id")
    private Long updateUserid;

}
